Automatic Gate Model